﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WinFormMapDemo.Model
{
    /// <summary>
    /// 设备状态
    /// </summary>
    public enum DeviceState
    {
        OFF = 0,
        ON =1,
        Broken = 2,
        Repaire = 3
        
    }
    /// <summary>
    /// 设备信息事件参数类
    /// </summary>
    public class DeviceInfoEventArgs:EventArgs
    {
        public DeviceInfo DeviceInfo { get; set; }
    }

    /// <summary>
    /// 设备信息
    /// </summary>
    public class DeviceInfo
    {
        //设备编号
        public string DeviceNo { get; set; }
        //设备名称
        public string DeviceName { get; set; }
        //设备状态
        public DeviceState DeviceState { get; set; }

        /// <summary>
        /// 设备坐标
        /// </summary>
        public LngLat  DevicePosition { get; set; }
        /// <summary>
        /// 设备地址
        /// </summary>
        public string DeviceAddress { get; set; }
    }
}
